﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="NavTreeList.aspx.cs" Inherits="Console_System_Navs_NavTreeList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript" language="javascript">

        function setorgid(navid) {
            if (navid != "") {
                document.getElementById("navId").value = navid;
                document.getElementById("delhref").href = "Console/System/Navs/Nav.ashx?title=delete&ids=" + navid;
            }
        }
        function add() {
            var url = "Console/System/Navs/NavAdd.aspx?PID=" + document.getElementById("navId").value;
            $.pdialog.open(url, 'addnav', '添加菜单', {width:520,height:380});
            return true;
        }
        function addPermision() {
            var url = "Console/System/Navs/NavPermisionAdd.aspx?PID=" + document.getElementById("navId").value;
            $.pdialog.open(url, 'addnav', '操作配置', { width: 520, height: 200 });
            return true;
        }
        function edit() {
            var url = "Console/System/Navs/NavEdit.aspx?ID=" + document.getElementById("navId").value;
            $.pdialog.open(url, 'editnav', '修改菜单', {width:520,height:380});
        }
    </script>
</head>
<body>
    <form id="pagerForm" method="post" action="Console/System/Navs/NavTreeList.aspx">
    </form>
    <div class="pageHeader">
        <form id="searchForm" rel="pagerForm" onsubmit="return navTabSearch(this);" action="Console/System/Navs/NavTreeList.aspx"
        method="post">
         <input type="hidden" Id="navId" name="navId" runat="server" value="1" />
        </form>
    </div>
    <div class="pageContent">
        <div class="panelBar">
            <ul class="toolBar">
                <li><a class="add"  onclick="return add();">
                    <span>添加菜单</span> </a></li>
                     <li><a class="edit"  onclick="return edit();">
                    <span>修改菜单</span> </a></li>
                <li><a id="delhref" class="delete"  target="ajaxTodo" title="确实要删除选定的菜单吗?"><span>删除菜单</span> </a></li>
                <li><a class="add"  onclick="return addPermision();">
                    <span>操作配置</span> </a></li>
            </ul>
        </div>
        <table class="table" width="100%"  layouth="138">
            <thead>
                <tr>
                    <ul id="orgtree"  runat="server" class="tree treeFolder  expand">
                        <%=GetNavMenuList("0") %>
                    </ul>
                </tr>
            </thead>
        </table>
        
    </div>
</body>
</html>
